﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LucyGrid
{
	/// <summary>
	/// Grid settings modifier
	/// </summary>
	public class GridSettings
	{
		/// <summary>
		/// Custom paths for the distributed binary image
		/// </summary>
		public List<string> BinPath { get; set; }

		/// <summary>
		/// Specifies a maximum processing time for a chunk to be processed.
		/// If the timeout raises the chunk is released as put back in the pending list
		/// </summary>
		public int ChunkTimeout { get; set; }

		/// <summary>
		/// Indicates that no local processing will be done, only remote nodes will process.
		/// <value>false by default</value>
		/// </summary>
		public bool EnableLocalProcessing { get; set; }

		public GridSettings() {
			EnableLocalProcessing = false;
			ChunkTimeout = 5000;
		}
	}
}
